require.config({
    baseUrl:"./modules",
    paths:{
        jq:"../libs/jquery",
        

    }
})
require(["getGoods","renderGoods","magnify","rendermagnify","Fuzzysearch","returntop","jq"],(gg,rg,mf,rf,Fs,rt)=>{
const url="http://localhost:3000/api"
gg(url,"getGoods",(res)=>{
    $(".top").load(`/public/publicPage.html #top`);
    $(".bottomBox").load(`/public/publicPage.html #bottomBox`);
    $(".bottomBox").load(`/public/publicPage.html #aboutUsBox`);
    $(".footer").load(`/public/publicPage.html #footer`);
    
    // console.log(typeof res)
    // console.log(res)
    //渲染放大镜
    //渲染整个页面
    rg($("article"),res)
    rg($(".banner_good_box").children(".banner_goods"),res)
    
    const id=location.search.split("=")[1]
    rf(id,res)
    mf()
})
mf()
Fs()
rt()
})




